import { request, goodsData, getMoreData } from "./request";

export function requestHomeMultidata() {
  // let apiKey = "50040a9b44bd4427b738e924886b7a83";
  // let productId = "16679089";
  // let deviceId = "e7806ae87f0446f79b852d8594ce46b6";
  // let page_timestamp = "";

  return request({
    url: "/productlist",
    method: "POST",
    // params: {
    //   apiKey,
    //   productId,
    //   deviceId,
    //   page_timestamp,
    // },
  });
}

export function requestHomeGoods(type, page) {
  return request({
    url: "/api/hy66/home/data",
    params: {
      type,
      page,
    },
  });
}

export function getMoreHomeData(type) {
  return getMoreData(type);
}

export const HomeGoodsData = goodsData;
